add debian patch build_reproducibility.patch to remove XDMF_SYSTEM
authorDrew Parsons <dparsons@debian.org>
Wed, 1 Jul 2026 09:57:40 +0000 (11:57 +0200)
committerDrew Parsons <dparsons@debian.org>
Wed, 1 Jul 2026 09:57:40 +0000 (11:57 +0200)
this patch maintains build reproducibility by dropping XDMF_SYSTEM
from XdmfConfig.h in xdmf2 headers.

XDMF_SYSTEM is set to CMAKE_SYSTEM, including the Linux version at
build time. It is not actually used by the code.

Closes: #1120818
debian/changelog
debian/patches/build_reproducibility.patch [new file with mode: 0644]
debian/patches/series

index 970f959866b1b2bf03af0a3a543c42eead4ea8e6..a9972fda3aec30852e1e56e335a81c6578cc1cae 100644 (file)
@@ -1,3 +1,13 @@
+vtk9 (9.6.2+dfsg1-1exp5) UNRELEASED; urgency=medium
+
+  * debian patch build_reproducibility.patch maintains build
+    reproducibility by dropping XDMF_SYSTEM (which is set to
+    CMAKE_SYSTEM, including the Linux version at build time) from
+    XdmfConfig.h in xdmf2 headers. XDMF_SYSTEM is not actually used by
+    the code. Closes: #1120818
+
+ -- Drew Parsons <dparsons@debian.org>  Wed, 01 Jul 2026 11:52:10 +0200
+
 vtk9 (9.6.2+dfsg1-1exp4) experimental; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/build_reproducibility.patch b/debian/patches/build_reproducibility.patch
new file mode 100644 (file)
index 0000000..c9c495e
--- /dev/null
@@ -0,0 +1,13 @@
+Index: vtk9/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfConfig.h.in
+===================================================================
+--- vtk9.orig/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfConfig.h.in 2026-06-20 13:37:48.365606265 +0200
++++ vtk9/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfConfig.h.in      2026-07-01 11:51:37.458361908 +0200
+@@ -32,8 +32,6 @@
+   #define XDMF_BYTE_ORDER_LITTLE
+ #endif
+-#define XDMF_SYSTEM ${CMAKE_SYSTEM}
+-
+ #cmakedefine XDMF_VOID_VALID
+ #ifndef XDMF_VOID_VALID
+     /* Force an Error */
index cee5204d06b748dff27047318f41e21060a9c7eb..4143c341395d7d867e62f69f68d6afff19d4e0d5 100644 (file)
@@ -12,3 +12,4 @@
 121_add_support_for_loong64.patch
 matplotlib_nullptr_s390x.patch
 gdal-3.13.patch
+build_reproducibility.patch